/* 全局提醒容器 */
.global-reminder-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* 提醒按钮 */
.reminder-toggle-btn {
  width: 50px;
  height: 50px;
  background-color: #f56a00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 106, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.reminder-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(245, 106, 0, 0.4);
}

.reminder-icon {
  font-size: 24px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.reminder-icon.active {
  animation: pulse 2s infinite;
}

/* 提醒徽章 */
.reminder-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background-color: #ff4d4f;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: blink 1.5s infinite;
}

/* 提醒列表弹窗 */
.reminder-popup {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  max-height: 500px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

/* 弹窗头部 */
.reminder-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.reminder-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.close-btn {
  font-size: 20px;
  color: #666666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff4d4f;
}

/* 弹窗内容 */
.reminder-popup-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 20px;
}

/* 下一个提醒信息 */
.next-reminder-info {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.next-reminder-title {
  font-size: 12px;
  color: #1890ff;
  font-weight: 500;
  margin-bottom: 4px;
}

.next-reminder-time {
  font-size: 14px;
  color: #1890ff;
  font-weight: 600;
}

/* 提醒列表 */
.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reminder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.reminder-item:hover {
  background-color: #f1f3f4;
  border-color: #f56a00;
}

.reminder-item.disabled {
  opacity: 0.6;
  background-color: #f5f5f5;
}

.reminder-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reminder-time {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.reminder-days {
  font-size: 12px;
  color: #666666;
}

.reminder-status {
  font-size: 10px;
  color: #999999;
  padding: 2px 6px;
  background-color: #e9ecef;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.reminder-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.reminder-actions .adm-button {
  min-width: 50px;
  height: 28px;
  font-size: 10px;
  padding: 0 8px;
}

/* 动画效果 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .global-reminder-container {
    top: 15px;
    right: 15px;
  }
  
  .reminder-popup {
    width: 280px;
    right: -10px;
  }
  
  .reminder-toggle-btn {
    width: 45px;
    height: 45px;
  }
  
  .reminder-icon {
    font-size: 20px;
  }
}
